<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	request.setCharacterEncoding("UTF-8");
	String userName = request.getParameter("userName");
	System.out.println(userName);
	String password = request.getParameter("password");
	String gender = request.getParameter("gender");
	String ckApple = request.getParameter("ckApple");
	String ckOrange = request.getParameter("ckOrange");
	String ckBanana = request.getParameter("ckBanana");
	String zy = request.getParameter("zy");
	String note = request.getParameter("note");
	String zyName[]={"","JB_PZHU","WB_PZHU","RB_PZHU"};
	//save in db 
	String fruit[]=request.getParameterValues("fruit");
	System.out.println(fruit.length);
%>


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>save jsp</title>
</head>
<body>
	<h1>save  success</h1>
	<table  border="1">
		<tr>
			<td>UserName:</td>
			<td><%=userName %></td>
		</tr>
		<tr>
			<td>PWD:</td>
			<td><%=password %></td>
		</tr>
		<tr>
			<td>Gender:</td>
			<td><%=gender %></td>
		</tr>
		<tr>
			<td>Fruit</td>
			<td>
				<%
					if(ckApple!=null) out.print(ckApple);
					if(ckOrange!=null) out.print(ckOrange);
					if(ckBanana!=null) out.print(ckBanana);
				%>
			</td>
		</tr>
		<tr>
			<td>ZY</td>
			<td><%=zyName[Integer.parseInt(zy)] %></td>
		</tr>
		<tr>
			<td>Note:</td>
			<td><%=note %></td>
		</tr>
		
	</table>
</body>
</html>